package com.hzqy.web.ac;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hzqy.persistence.dao.hqjc.ClearCacheDao;


@Controller
@RequestMapping("/")
public class ClearCacheAction {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	@Resource
	private ClearCacheDao clearCacheDao;
	
	@RequestMapping("/clear_cache")
	@ResponseBody
	public Object clearCache(){
		String result = clearCacheDao.clearCache();
		return "结果：<br/>"+result;
	}
}
